<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>世纪黑卡后台管理系统</title>
    <!-- CSS -->
    <link rel="stylesheet" href="/admin/adminlogin/css/bootstrap.min.css">
    <link rel="stylesheet" href="/admin/adminlogin/css/font-awesome.min.css">
    <link rel="stylesheet" href="/admin/adminlogin/css/form-elements.css">
    <link rel="stylesheet" href="/admin/adminlogin/css/style.css">
	<link href="/admin/adminlogin/img/bitbug_favicon.ico" rel="shortcut icon">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <!--<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>-->
    <!--<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>-->
    <!--[endif]-->

    <script type="text/javascript" src="/admin/adminlogin/jquery.min.js"></script>
    <script type="text/javascript">
        function login()
        {
            var $formBody = $('#form-body');
            $.post('/admin/Login/dologin', $formBody.serialize(),
                    function(rep, status) {
						<!-- alert(rep + "_" + status); -->
                        if ("登录成功" == rep) {
                            window.location.href = "/admin/Frame";
                        }
                        else {
                            alert("登录失败");
                        }
                    }
            );
        };
		
		function keyDown(event){
            var e=event ||window.event|| arguments.callee.caller.arguments[0];
            if(e&&e.keyCode==13){
                login();
            }else{
                return false;
            }
        }
    </script>

</head>

<body style="background-color:#009fe6" onkeydown="keyDown();">
<!-- Top content -->
<div class="top-content">
    <div class="inner-bg">
        <div class="container" style="width:1200px;">
            <div class="row">
                <div class="col-sm-6" style="width:600px;">
                    <img src="/admin/adminlogin/img/2.jpg" />
                </div>
                <div class="col-sm-5 mart70" style="width:550px;">
                    <div class="form-top">
                        <div class="form-top-left">
                            <h3>世纪黑卡后台管理系统</h3>
                        </div>
                        <div class="form-top-right">
                            <i class="fa fa-key blue"></i>
                        </div>
                    </div>
                    <div class="form-bottom">
                        <form role="form" action="" method="post" class="login-form"  id="form-body">
                            <div class="form-group">
                                <label class="sr-only" for="form-username">用户名</label>
                                <input type="text" name="a_account" placeholder="用户名" class="form-username form-control" id="form-username">
                            </div>
                            <div class="form-group">
                                <label class="sr-only" for="form-password">密码</label>
                                <input type="password" name="a_password" placeholder="密码" class="form-password form-control" id="form-password">
                            </div>
                            <button type="button" class="btn btn-info" onclick="login()">登录</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>


